package rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class HelloServiceImpl extends UnicastRemoteObject implements HelloService {

    protected HelloServiceImpl() throws RemoteException {
        super(8888);
    }

    @Override
    public String sayHello(String name) throws RemoteException {
        return "你好, " + name + "! 来自RMI服务的问候";
    }
}